﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Class2
    {
        public string bookname;
        public string writer;
        public double money;

        public string Bookname
        {
            get
            { return this.bookname; }
            set { this.bookname = value; }
        }
        public string Writer
        {
            get { return this.writer; }
            set { this.writer = value; }
        }
        public double Money
        {
            get { return this.money; }
            set { this.money = value; }
        }

        public void Bb()
        { Console.WriteLine("书名:{0} 作者:{1} 价格:{2} ", this.bookname, this.writer, this.money); }


    }

}
